Repository navigation
feat(id-native-shell): target-gate the Bevy x11/wayland features to Linux (#12817 slice 1) - #13147
Conversation
…inux The base Bevy dependency enabled the x11 and wayland features unconditionally, so they resolved active for every target — including the macOS target #12817 adds next. Move both features into the existing cfg(target_os = "linux") dependency table (features are additive across target tables, so the Linux resolution is unchanged: bevy and bevy_winit still resolve with wayland,x11 and the Linux system-library wiring in nix-common.nix still applies). For aarch64-apple-darwin, bevy/bevy_winit now resolve with no wayland/x11 features at all. Refs #12817 (slice 1 of Lane LS's breakdown on that issue).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Verification record — Lane PJ (archer), 2026-11-23. Linux suite: 73 passed / 0 failed — Route note (why the laptop, not a dispatch): dispatch was tried first, four times — runs 45145807796, 45146728602, 45147861730, 45150189636. All four were stopped by fleet-command container environment defects (nix experimental features off in the command context; |
Slice 1 of #12817, per Lane LS's breakdown recorded on that issue: target-gate
id-native-shell's Bevy window features.Change (one file,
pkgs/id/crates/id-native-shell/Cargo.toml, +9/−2): thex11/waylandfeatures move out of the basebevydependency into the existing[target.'cfg(target_os = "linux")'.dependencies]table as a secondbevyentry carrying exactly those two features. Features are additive across target tables, so Linux resolves the same Bevy feature set as before; other targets no longer resolve them at all.Cargo.lockis untouched (the cross-target dependency union is unchanged).Resolution evidence (
cargo tree -p id-native-shell -f "{p} feats:{f}"undernix developin pkgs/id):bevyfeats includedwayland,x11;bevy_winitfeatswayland,x11.--target aarch64-apple-darwin):bevyfeats have nowayland/x11;bevy_winitfeats empty. The darwin crate graph contains zero wayland-stack crates (smithay/calloop/xkbcommon/wayland/x11/drm/gbm/libinput) — as it already did before, since winit cfg-gates those crates itself; what this slice removes is the feature activation for non-Linux targets.bevy/bevy_winitfeats still carrywayland,x11— byte-identical resolution to before.Test verification: the Linux suite result is recorded in a comment on this PR once the dispatched run returns (acceptance: 73/73, matching the #10928 verification at PR #12884).
This PR does not close #12817: slice 2 (macOS venue decision) and slice 3 (the macOS shell) remain, per the breakdown on the issue.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.